<?php

$db = require __DIR__ . '/db.php';
$route = require __DIR__ . '/route.php';
 $config = [
	'id' =>'app',
	'basePath' => dirname(__DIR__),
	'params' =>$db,
	'components' => [
		'db' => $db,
		'errorHandler'=>[
			'maxSourceLines' =>20,
		],
	'urlManager' =>[
		'enablePrettyUrl'=>true,
		'showScriptName'=>true,
		'rules' => $route,
		],
	/*'request' => [
	    'parsers' => [
	        'application/json' => 'yii\web\JsonParser',
	    	],
		],*/
	],
	'defaultRoute'=>'index/index',
	//'catchAll' => ['index/index'],
	
];

return $config;